package com.micro.center.run;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @author pan.shun
 * @since 2022/6/24 16:15
 */
@Slf4j
@Component
@Order(2)
public class MyCommandLineRunner implements CommandLineRunner {

    private static final String LINE = "\r\n---------------------------------------------\r\n";

    @Override
    public void run(String... args) {
        log.info("{}  {} {}", LINE, "  <GeneratorUtils> 类可对数据库进行快捷备份生成sql脚本 ,会默认生成于 db 目录下", LINE);
    }
}